bfd1f556a2b1832ef3a8e6b2cdc08544632bb70c,Awful.apk/src/main/java/com/ferg/awfulapp/provider/StringProvider.java,StringProvider,getName,#AwfulActivity#number#Uri#String[]#String#String#,34
Before Change
Cursor cursor = null;
try {
CursorLoader cl = new CursorLoader(context,
ContentUris.withAppendedId(contentUri, id),
projection,
null,
null,
After Change
String columnName, String defaultPrefix) {
String result;
ContentResolver contentResolver = context.getContentResolver();
Cursor cursor = contentResolver.query(ContentUris.withAppendedId(contentUri, id),
projection,
null,
null,
null);
if (cursor != null && cursor.moveToFirst()) {
result = cursor.getString(cursor.getColumnIndex(columnName));
} else {
result = defaultPrefix + String.valueOf(id);
}
if (cursor != null) {
cursor.close();
}
return result;
}
}